package com.dengjk.codegenerator.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @ClassName :
 * @Author : dengjk
 * @Description:
 * @Date : 2018-09-20 18:21
 */
@Entity
@Data
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" })
@Table(name = "table_strategy_config")
public class TableStrategyConfig implements Serializable {

    private static final long serialVersionUID = 2560431775903963939L;
    @Id
    private Long id;

    @Column(name = "db_id")
    private Long dbId;

    @Column(name = "\"table_name\"")
    private String tableName;

    @Column(name = "\"prefix\"")
    private String prefix;

    @Column(name = "model_name")
    private String modelName;

    @Column(name = "\"author\"")
    private String author;

    @Column(name = "entity_name")
    private String entityName;

    @Column(name = "mapper_name")
    private String mapperName;

    @Column(name = "xml_name")
    private String xmlName;

    @Column(name = "service_name")
    private String serviceName;

    @Column(name = "service_Impl_name")
    private String serviceImplName;

    @Column(name = "controller_name")
    private String controllerName;

    @Column(name = "entity_package")
    private String entityPackage;

    @Column(name = "service_package")
    private String servicePackage;

    @Column(name = "service_impl_package")
    private String serviceImplPackage;

    @Column(name = "mapper_package")
    private String mapperPackage;

    @Column(name = "controller_package")
    private String controllerPackage;

    @Column(name = "template_set_id")
    private Long templateSetId;

}
